// 暴露一个路由数组
export default [
    /* 发现音乐 */
    {
        path:'/',
        redirect:'/findmusic'
    },
    // 发现音乐
    {
        path:'/findmusic',
        component:()=>import('@/views/findmusic/index.vue'),
        name:'Findmusic',
        redirect:'/findmusic/discover',
        children:[
            // 个性推荐
            {
                name:'Discover',
                path:"discover",
                component:()=>import('@/views/findmusic/discover/Discover.vue') 
            },
            // 歌单
            {
                name:'Recsonglist',
                path:'recsonglist',
                component:()=>import('@/views/findmusic/recsonglist/Recsonglist.vue')

            },
            // 排行榜
            {
                name:'Songrank',
                path:'songrank',
                component:()=>import('@/views/findmusic/songrank/Songrank.vue')
            },
            // 歌手
            {
                name:'Singer',
                path:'singer',
                component:()=>import('@/views/findmusic/signer/Signer.vue')
            },
            // 最新音乐
            {
                name:'Newsongs',
                path:'newsongs',
                component:()=>import('@/views/findmusic/newsongs/Newsongs.vue')
            }
        ]
    },

    // 推荐视频
    {
        name:'Recvideo',
        path:'/recvideo',
        redirect:"/recvideo/mv",
        component:()=>import('@/views/recvideo/Recvideo.vue'),
        children:[
            {
                name:"MV",
                path:"mv",
                component:()=>import('@/views/recvideo/Childcomps/MV.vue')
            },
            {
                name:"Video",
                path:"video",
                component:()=>import('@/views/recvideo/Childcomps/Video.vue')
            }

        ]
    },
    // 歌单详情
    {
        name:'SongListDetail',
        path:'/songlistdetail/:id',
        component:()=>import('@/views/songlistdetail/SongListDetail.vue')
    },
    // 专辑详情
    {
        path:'/albumdetail/:id',
        name:'AlbumDetail',
        component:()=>import('@/views/albumdetail/AlbumDetail.vue')
    },
    // 歌手详情
    {
        path:'/singerdetail/:id',
        name:'SingerDetail',
        component:()=>import('@/views/singerdetail/Singerdetail.vue')
    },
    // mv详情
    {
        path:"/mvlistdetail/:id/:type",
        name:"MvDetail",
        component:()=>import('@/views/videodetail/MvDetail.vue')
    },
    // 视频详情
    {
        path:"/videolistdetail/:id/:type",
        name:"VideoDetail",
        component:()=>import('@/views/videodetail/VideoDetail.vue')
    },
    // 搜索详情页
    {
        name:'SearchDetail',
        path:'/searchdetail/:keywords',
        component:()=>import('@/views/searchdetail/Searchdetail.vue'),
        redirect:'/searchdetail/songres/:keywords',
        children:[
            {
                name:'Songres',
                path:'/searchdetail/songres/:keywords',
                component:()=>import('@/views/searchdetail/Childcomps/Songres.vue')
            },
            {
                name:'Albumres',
                path:'/searchdetail/albumres/:keywords',
                component:()=>import('@/views/searchdetail/Childcomps/Albumres.vue')
            },
            {
                name:'Singerres',
                path:'/searchdetail/singerres/:keywords',
                component:()=>import('@/views/searchdetail/Childcomps/Singerres.vue')
            },
            {
                name:'Songlistres',
                path:'/searchdetail/songlistres/:keywords',
                component:()=>import('@/views/searchdetail/Childcomps/Songlistres.vue')
            },
            {
                name:'Mvres',
                path:'/searchdetail/mvres/:keywords',
                component:()=>import('@/views/searchdetail/Childcomps/Mvres.vue')
            },
            {
                name:'Videores',
                path:'/searchdetail/videores/:keywords',
                component:()=>import('@/views/searchdetail/Childcomps/Videores.vue')
            },
            
        ]
    }
]